package com.cacshanghai.cac_oa_client.ui;

import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.cacshanghai.cac_oa_client.R;

/**
 * Created by geyh on 2016/5/24.
 */
public class DailyFragment extends HomePageBaseFragment {

    private LinearLayout ll_empty_daily, ll_refuse_daily;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_daily, container, false);
    }

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);

        setTitle(R.string.my_daily);
        setTitleBackgroundColor(R.color.light_green);
        setTitleOnClickToPage(DailyActivity.class);

        ll_empty_daily = (LinearLayout) getView().findViewById(R.id.ll_empty_daily);
        ll_empty_daily.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), DailyActivity.class);
                startActivity(intent);
            }
        });

        ll_refuse_daily = (LinearLayout) getView().findViewById(R.id.ll_refuse_daily);
        ll_refuse_daily.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), DailyActivity.class);
                startActivity(intent);
            }
        });

    }

}
